package huangjinkuanggong;

import java.awt.*;

public class Object {

        //坐标
        int x;
        int y;

        //宽高
        int width ;
        int height;

        //图片
        Image image;

        //标记是否能移动
        boolean flag;
        int m;//质量

        int count;//
        public void paintSelf(Graphics g){
            g.drawImage(image ,x,y,null);

        }

        public int getWidth() {
                return width;
        }
        //获取矩形
        public Rectangle getRec(){
                return new Rectangle(x,y,width,height);
        }
}